package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
@Setter@Getter
/**
 * 用户私信表
 */
public class PrivateMessage extends  BaseDomain{

    private String content;//内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date sendTime;//发送时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date readTime;//阅读时间

    private boolean state;//状态,默认未读

    private User sender; //发送者id

    private Long receiverId;//接收者id
}